home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / hline3.h < prev    next >
C/C++ Source or Header  |  1992-02-25  |  2KB  |  51 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Pat Hanrahan, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. #ifndef HLINE3DEF
  13. #define HLINE3DEF
  14.  
  15. #define HLN3_POINT_FORM -1
  16. #define HLN3_PLANE_FORM  1
  17. #define HLN3_DUAL_FORM(f) (-(f))
  18.  
  19. typedef struct { 
  20.     float L[4][4];
  21.     int type;
  22. } HLine3;
  23.  
  24. extern HLine3 *HLn3Create();
  25. extern void HLn3Delete(/* HLine3 *ln */);
  26.  
  27. extern void HLn3Print(/* HLine3 *ln */);
  28. extern void HLn3Copy(/* HLine3 *ln1, *ln2 */);
  29. extern int HLn3From2HPt3s(/* HLine3 *ln, HPoint3 *pt1, *pt2 */);
  30. extern int HLn3From2HPl3s(/* HLine3 *ln, HPlane3 *pl1, *pl2 */);
  31.  
  32. extern int HLn3IntersectHPt3(/* HLine3 *ln, HPoint3 *pt, HPlane3 *pl */);
  33. extern int HLn3IntersectHPl3(/* HLine3 *ln, HPlane3 *pl, HPoint3 *pt */);
  34. extern int HLn3IntersectHLn3(/* HLine3 *lnpl, *lnpt, HPlane3 *pl, HPoint3 *pt */);
  35.  
  36. extern int HLn3Undefined(/* HLine3 *ln */);
  37. extern int HLn3Infinity(/* HLine3 *ln */);
  38. extern int HLn3Compare(/* HLine3 *ln1, *ln2 */);
  39.  
  40. extern int HLn3CoincidentHPt3(/* HLine3 *ln, HPoint3 *pt */);
  41. extern int HLn3CoincidentHLn3(/* HLine3 *ln1, *ln2 */);
  42. extern int HLn3CoincidentHPl3(/* HLine3 *ln, HPlane3 *pl */);
  43.  
  44. extern void HLn3Transform(/* Transform3 T, HLine3 *ln1, *ln2 */);
  45.  
  46. extern void HLn3Dual(/* HLine3 *ln, *lndual */);
  47.  
  48. extern void HLn3Perp(/* HLine3 *ln, *lnperp */);
  49.  
  50. #endif
  51.